package com.ry.aspect;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * 还没想好解决方案，zk做分布式锁貌似性能低
 * @author Administrator
 *
 */
@Aspect
@Component
public class ZkLockAspect {

	// 配置织入点
	@Pointcut("@annotation(com.ry.aspect.annotation.ZkLock)")
	public void doOperation() {
		
	}

	
	
	@Around("doOperation()")
	public Object around(ProceedingJoinPoint point) throws Throwable {

		try {

			return point.proceed();
        			
			
		} finally {

		}
		
	}
	
	
}
